package cn.cvs.utils;

public class Single {
    private static Single single;
    // 私有化构造方法,项目运行期间,仅执行一次
    private Single(){}

    // 静态内部类
    public static class SingleHelper{
        private static final Single INSTANCE = new Single();
    }

    public static Single getInstance(){
        single = SingleHelper.INSTANCE;
        return single;
    }

    public static Single test(){
        return single;
    }
}
